import java.util.List;


public class GenericTypeEx {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		Point<Integer> point1 = new Point<Integer>(4, 2);
		point1.setX(7);
		Point<Double> point2 = new Point<Double>(1.3, 2.6);
		point2.setX(109.91);

		
	}

}

class Point<T> {
	T x;
	T y;
	public Point(T x, T y) {
		this.x = x;
		this.y = y;
	}
	public T getX() {
		return x;
	}
	public T getY() {
		return y;
	}
	public void setX(T x) {
		this.x = x;
	}
	public void setY(T y) {
		this.y = y;
	}
}

